<?php
return array(
	'searchColumns' => array(
		'title',
		'web_id' => array('dropDownList',Yii::app()->enum->options('web.web'),
			'visible' => 'Yii::app()->adminUser->role != AdminUser::ROLE_DEALER',
		),
		'begin_time' => array('class'=>'DatetimePickerField'),
		'end_time' => array('class'=>'DatetimePickerField'),
	),
	'dataColumns' => array(
		'id',
		'title',
		array(
			'name' => 'type',
			'value' => 'Yii::app()->enum->lookup("content.adType", $data->type)'
		),
		'create_time',
		array(
			'name' => 'web.host',
			'visible' => Yii::app()->adminUser->role != AdminUser::ROLE_DEALER,
		),
		array(
			'header' => '操作',
			'class' => 'ButtonColumn',
		),
	),
	'_import' => array(
		array('*', 'actions.admin//*'),
	),
);
?>